<template>
    <div style="height: 100%;">
        <van-nav-bar
                :fixed="fixed"
                title=" "
                left-text="返回"
                left-arrow
                @click-left="onClickLeft"
        />
        <iframe :src="this.$route.query.url" frameborder="0"
                v-bind:style="{height:iframeHeight+'px'}"></iframe>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                fixed: true,
                iframeHeight: 0
            }
        },
        methods: {
            onClickLeft() {
                this.$router.back()
            }
        },
        mounted() {
            this.iframeHeight = document.documentElement.clientHeight-46;
            // this.see(this.$route.query.url)
        }
    }
</script>
<style>

</style>
<style scoped>
    iframe {
        position: absolute;
        top: 46px;
        width: 100%;
        left: 0;
        bottom: 0;
    }
</style>